Keyway Calculator Program